Interface sjl.SequenceContainer
All Packages Class Hierarchy This Package Previous Next Index
Interface sjl.SequenceContainer
- public interface SequenceContainer
- extends Object
- extends Container
Defines the methods allowed on sequence container types.
The supported containers are currently:
List
, Vector
and Deque
.
Copyright © 1996 Finn Bock
- See Also:
- List, Vector, Deque
-
back()
- Return the last element in the container.
-
erase(Iterator)
- Erase the element pointed to by position.
-
erase(Iterator, Iterator)
- Erase the elements in the range
[first,last)
.
-
front()
- Return the first element in the container.
-
insert(Iterator, InputIterator, InputIterator)
- Insert copies of
[first, last)
before position.
-
insert(Iterator, int, Object)
- Insert
n
copies of object
before position.
-
insert(Iterator, Object)
- Insert a copy of object before position.
insert
public abstract Iterator insert(Iterator position,
Object object)
- Insert a copy of object before position.
insert
public abstract void insert(Iterator position,
int n,
Object object)
- Insert
n
copies of object
before position.
insert
public abstract void insert(Iterator position,
InputIterator first,
InputIterator last)
- Insert copies of
[first, last)
before position.
erase
public abstract void erase(Iterator position)
- Erase the element pointed to by position.
erase
public abstract void erase(Iterator first,
Iterator last)
- Erase the elements in the range
[first,last)
.
front
public abstract Object front()
- Return the first element in the container. Undefined is the container
is empty.
back
public abstract Object back()
- Return the last element in the container. Undefined is the container
is empty.
All Packages Class Hierarchy This Package Previous Next Index